package com.tai.design.command;

import java.util.HashMap;
import java.util.Map;

/**
 * The type Order.
 *
 * @version v1.0
 * @ClassName: Order
 * @Description: 订单类
 * @Author: taylor
 */
public class Order {
    //餐桌号码
    private int diningTable;

    //所下的餐品及份数
    private Map<String,Integer> foodDir = new HashMap<String, Integer>();

    /**
     * Gets dining table.
     *
     * @return the dining table
     */
    public int getDiningTable() {
        return diningTable;
    }

    /**
     * Sets dining table.
     *
     * @param diningTable the dining table
     */
    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    /**
     * Gets food dir.
     *
     * @return the food dir
     */
    public Map<String, Integer> getFoodDir() {
        return foodDir;
    }

    /**
     * Sets food.
     *
     * @param name the name
     * @param num  the num
     */
    public void setFood(String name,int num) {
        foodDir.put(name,num);
    }
}
